#include <iostream>
using std::cout;
using std::endl;

void test0(){
    //临时变量、临时对象是右值
    //能取址的是左值，不能取址的是右值
    int a = 1;
    int b = 2;
    &a;
    /* &(a + b); */
    /* &1; */

    //非const引用只能绑定左值
    //不能绑定右值
    int & ref = a;
    /* int & ref2 = a + b; */
    const int & ref2 = a + b;
    const int & ref3 = 1;

}

int main(void){
    test0();
    return 0;
}
